package file;

import java.io.File;

public class ListFile {
    public static void main(String[] args) {
        File file = new File(".");
        File[] files=file.listFiles();
        for(File file1 : files)
            System.out.println(file1.getName());
        System.out.println(files.length);
    }
}
